package com.smasher.dialog.alert;

import android.text.method.LinkMovementMethod;
import android.widget.TextView;

import androidx.appcompat.app.AlertDialog;


/**
 * @author HXZ_Android
 */
public class PrivacyDialog extends ConfirmDialog {


    @Override
    public void onStart() {
        super.onStart();

        if (getDialog() != null) {
            AlertDialog dialog = (AlertDialog) getDialog();
            dialog.setCancelable(false);
            TextView mMessageView = dialog.findViewById(android.R.id.message);
            if (mMessageView != null) {
                mMessageView.setMovementMethod(LinkMovementMethod.getInstance());
            }
        }
    }

}
